<?php
require_once("page.php");

$eng->setInfo(TRUE);
//$eng->Caching = TRUE;


//------------------------------------------------------------
// Set some values into the template engine
//------------------------------------------------------------
$eng->assign("pageTitle", "Template Engine");
$eng->assign("pageSubTitle", "Complete Example for PHP - A Complex One!");
$eng->assign("title", "Template Engine - Script 1");
$eng->assign("submit", "Bản thử nghiệm.");
$eng->assign("save", "Bản lưu.");
$eng->assign("loveYou", "Something is better than that way?");
$values = &$eng->getValues();
$values["submit"] = "Thử nghiệm cái con khỉ";

$menuItem = array(
	 array(
		"url" => "home.aspx",
		"text" => "Home"),
	 array(
		 "url" => "contact.php",
		 "text" => "Contact"),
	 array(
		 "url" => "news.jsp",
		 "text" => "News"),
	 array(
		 "url" => "credits.php",
		 "text" => "Credits")
);

$eng->assign("menu", $menuItem);
$eng->assign("outer", "Outer most block goes here.");

$innerColors = array("#02e4ff", "#ff6d02");
$eng->assign("InnerItem", $innerColors);
$eng->assign("IntoInner", "I'm On Inner Block");

$innerMostColors = array("#E5E5E5", "#333333");
$eng->assign("InnerMostItem", $innerMostColors);
$eng->assign("whatever", "I'm On Inner Most Block - Whatever");

//------------------------------------------------------------
// Load the template and Generate Ouput
//------------------------------------------------------------
$eng->show("tpl/layout.html");
?>